linux: fix build warnings
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Fri, 9 Mar 2007 19:33:43 +0000 (19:33 +0000)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Fri, 9 Mar 2007 19:33:43 +0000 (19:33 +0000)
Signed-off-by: Keir Fraser <keir@xensource.com>
linux-2.6-xen-sparse/arch/i386/kernel/process-xen.c
linux-2.6-xen-sparse/arch/i386/mm/pgtable-xen.c
linux-2.6-xen-sparse/arch/x86_64/kernel/process-xen.c

index 4ab9d16f65bd4006d54a820e9a33de943ec5a930..6c19ecc4179898282c0ee12c314f7e00cc52c8d0 100644 (file)
@@ -307,7 +307,8 @@ void exit_thread(void)
        if (unlikely(test_thread_flag(TIF_IO_BITMAP))) {
                struct task_struct *tsk = current;
                struct thread_struct *t = &tsk->thread;
-               struct physdev_set_iobitmap set_iobitmap = { 0 };
+               struct physdev_set_iobitmap set_iobitmap;
+               memset(&set_iobitmap, 0, sizeof(set_iobitmap));
                HYPERVISOR_physdev_op(PHYSDEVOP_set_iobitmap, &set_iobitmap);
                kfree(t->io_bitmap_ptr);
                t->io_bitmap_ptr = NULL;
index 4f7248980013f543851ecdd8ea010b4e36eb1f38..28752922e36abe5375e3f8fd66785ac1bcbdfba7 100644 (file)
@@ -600,7 +600,7 @@ static void pgd_walk(pgd_t *pgd_base, pgprot_t flags)
        int    g, u, m, rc;
 
        if (xen_feature(XENFEAT_auto_translated_physmap))
-               return 0;
+               return;
 
        for (g = 0; g < USER_PTRS_PER_PGD; g++, pgd++) {
                if (pgd_none(*pgd))
index a9e17cd56423b49d66fcab97439d7219da93088d..41aa70ce63fd2bd71cb72b50cc03dfa567385398 100644 (file)
@@ -304,7 +304,8 @@ void exit_thread(void)
                struct tss_struct *tss = &per_cpu(init_tss, get_cpu());
 #endif
 #ifdef CONFIG_XEN
-               struct physdev_set_iobitmap iobmp_op = { 0 };
+               struct physdev_set_iobitmap iobmp_op;
+               memset(&iobmp_op, 0, sizeof(iobmp_op));
 #endif
 
                kfree(t->io_bitmap_ptr);